﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PropertyManagement.Core.Model;

namespace PropertyManagement.Core {
    public class StaticProvider {
        public SystemUser CurrentLoginedUser { get; set; }
        private static readonly object locker = new object( );
        private static StaticProvider instance;
        public static StaticProvider Instance {
            get {
                if (instance == null) {
                    lock (locker) {
                        if (instance == null) {
                            instance = new StaticProvider( );
                        }
                    }
                }
                return instance;
            }
        }

      
    }
}
